-- GENERATED SPELL FOR [Riverpaw Bandit] --


function spell0_452(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(53,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_452', 631, 1)
end

function spell1_452(pUnit, Event) --@Poisonous Stab,n/a--
pUnit:FullCastSpellOnTarget(7357,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_452', 15000, 1)
end

function Sorts_452(pUnit, Event)
local choix_sorts_452 = math.random(0, 1)
if choix_sorts_452 == 0 then
pUnit:RegisterEvent('spell0_452', 1, 1)
end
if choix_sorts_452 == 1 then
pUnit:RegisterEvent('spell1_452', 1, 1)
end
end

function mob452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_452', math.random(1500, 3000), 1)
end

function mob452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(452, 1, 'mob452_Action')
RegisterUnitEvent(452, 2, 'mob452_Leave')
RegisterUnitEvent(452, 3, 'mob452_Kill')
RegisterUnitEvent(452, 4, 'mob452_Die')
